package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.invoicings.entity.InboundDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface InboundDetailMapper extends BaseMapper<InboundDetail> {

    /**
     * 根据id回显入库单明细数据
     * @param id
     * @return
     */
    InboundDetail selectInboundDetailByInboundId(Integer id);

    /**
     * 查询所有入库单明细
     * @param map
     * @return
     */
    List<InboundDetail> selectInboundDetailAll(Map<String, Object> map);

    /**
     * 根据入库单id查询入库单明细
     * @param id
     * @return
     */
    List<InboundDetail> selectInboundDetailById(Integer id);

}
